package main;

import dao.impl.AirInfoDaoImpl;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/*
在控制台显示留言信息和用户添加留言操作。
启动和运行程序
 */
public class Main {
    public static void main(String[] args) throws ParseException {
        View v=new View();
        m: while(true){
            v.welcome();
            while(true){
                int choose=v.menu();
                switch(choose) {
                    case 1:v.getAll();
                        continue ;
                    case 2:v.getByDate();
                        continue ;
                    case 3:v.getByDestination();
                        continue ;
                    case 4:v.delete();
                        continue;
                    case 5:v.update();
                        continue ;
                    case 6:
                        break m ;

                }

            }
        }
        v.bye();
    }

}

/*
https://blog.csdn.net/chh1ctrl/article/details/115409692
 */

/*
https://blog.csdn.net/qq_40246175/article/details/103000392
 */